package com.energy.analysis.sys.mapper;

import java.util.List;

import com.energy.analysis.comm.base.BaseMapper;
import com.energy.analysis.sys.entity.Department;
import com.energy.analysis.sys.entity.OprInfo;


public interface DepartmentMapper  extends BaseMapper<Department> {
	
	/**
	 *搜索部门
	 */
	//public List<Department> searchDept(String depName) throws Exception;
	
	/**
	 *根据ID查询部门
	 */
	public Department findDepId(Integer depId) throws Exception;
	
	/**
	 *验证部门名称
	 */
	public int  existDepName(String depName) throws Exception;
	
	/**
	 *添加部门
	 */
	public int insertDept(Department department) throws Exception;

	/**
	 *修改部门
	 */
	public int updateDept(Department department) throws Exception;

	/**
	 *删除部门
	 */
	public int deleteDept(Integer depId) throws Exception;
	

	/**
	 *部门详情
	 */
	public List<OprInfo>  detailDepId(Integer depId) throws Exception ;
	
	/**
	 *部门操作员校验
	 */
	public int  find0prDepId(Integer depId) throws Exception;

}
